using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using QuanLyThuVien1.DTO;

namespace QuanLyThuVien1.DAO
{
    public class CThanhLySach_DAOcs
    {
        public void IntSertBangThanhLy(CThanhLySach t)
        {
            OleDbConnection connect = KETNOI.taoKetNoi();
            string connecstr = "insert into THANHLYSACH values('"+t.MaNguoiThanhLy+"','"+t.TenNguoiThanhLy+"','"+t.MaSach+"','"+t.LyDoThanhLy+"','"+t.NgayThanhLy+"','"+t.SoCuon+"')";
            OleDbCommand command = new OleDbCommand(connecstr,connect);
            command.ExecuteNonQuery();
            connect.Close();
        }

    }
}
